////////////////////////////////////////////////////////////////////////////
//
// Copyright 2018 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////

@import "~realm-studio-styles/variables";

$content-background: rgba($charcoal, .6);
$hr-color: rgba($dove, .33);

.MarketingPanel {
  background: $charcoal;
  color: $white;
  position: relative;

  &__PreviewToggle {
    background: $content-background;
    bottom: - $spacer / 2;
    font-size: .8rem;
    padding: $spacer / 4;
    position: absolute;
    text-align: center;
    width: 100%;
  }

  // The following is required to make the item go full height, the API has no way of passing another class name
  &__Carousel,
  &__Carousel > .carousel-inner, // sass-lint:disable-line class-name-format
  &__CarouselItem {
    height: 100%;
  }

  &__MessageSlide {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: $spacer 0;
  }

  &__MessageContent {
    // Tumbleweed
    background: $content-background;
    font-size: .8rem;
    overflow: auto;
    padding: $spacer;
    text-align: justify;

    &--top {
      align-self: flex-start;
    }

    &--middle {
      align-self: center;
    }

    &--bottom {
      align-self: flex-end;
    }

    &--left {
      text-align: left;
    }

    &--justify {
      text-align: justify;
    }

    &--center {
      text-align: center;
    }

    h1 {
      font-size: 1.35em;
      text-align: center;
    }

    a {
      color: $white;
      text-decoration: underline;
    }

    code {
      color: $white;
    }

    blockquote {
      border-left: ($spacer / 8) solid $dove;
      padding-left: $spacer / 2;
    }

    ul,
    ol {
      padding-left: 1.2 * $spacer;

      li > p {
        margin-bottom: .1rem;
      }
    }

    h1,
    p,
    ul,
    ol, {
      margin-bottom: .6rem;
    }

    hr {
      border-color: $hr-color;
    }
  }

  &__EmbeddedAsset {
    max-width: 100%;
  }
}
